import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/vue-admin-template/table/list',
    method: 'get',
    params
  })
}
// 获取验证码接口
export function getTest(num) {
  return request({
    url: `https://likede2-java.itheima.net/api/user-service/user/imageCode/${num}`,
    method: 'get',
    responseType: 'blob'
  })
}
// 工单统计接口
export const getGongdan = (start, end) => {
  return request.get(`/task-service/task/taskReportInfo/${start}/${end}`)
}
// 销售统计订单量
export const salenum = (data) => {
  return request.get('/order-service/report/orderCount', { params: data })
}
// 销售统计销售额
export const soleTotle = (data) => {
  return request.get('/order-service/report/orderAmount', { params: data })
}
